import 'package:flutter/material.dart';

class FourRelultPager extends StatefulWidget {
  @override
  _FourRelultPagerState createState() => _FourRelultPagerState();
}

class _FourRelultPagerState extends State<FourRelultPager> {
  var newNumber = new TextEditingController();
  var newNumber1 = new TextEditingController();
  var newNumber2 = new TextEditingController();
  var newNumber3 = new TextEditingController();


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: InkWell(
          onTap: () {
            Navigator.of(context).pop();
          }, //故障申请表
          child: Icon(
            Icons.chevron_left,
            size: 29.0,
            color: Colors.white,
          ),
        ),
        automaticallyImplyLeading: false,
        centerTitle: true,
        title: Text(
          "备件筛选",
          style: TextStyle(fontSize: 16.0),
        ),
        actions: <Widget>[
          Center(
            child: Container(
              padding: new EdgeInsets.only(right: 10.0),
            ),
          ),
        ],
      ),
      body: ListView(
        children: <Widget>[
          Container(margin: new EdgeInsets.only(top:5.0,bottom:5.0),width: MediaQuery.of(context).size.width,height:1.0,color: Colors.black12,),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Container(
                child: Text("设备名称"),
                margin: new EdgeInsets.only(left: 13.0),
              ),
              Container(
                child: Row(
                  children: <Widget>[
                    Container(
                      margin: EdgeInsets.only(left: 2.0, top: 5.0),
                      child: Text(""),
                    ),
                    new SizedBox(
                      height: 25.0,
                      width:210.0,
                      child: Container(
                        padding: new EdgeInsets.only(bottom: 9.0,right:10.0),
                        margin: new EdgeInsets.only(
                            left: 1.0, right: 1.0, top: 0.0),
                        height: 25.0,
                        decoration: BoxDecoration(
                          color: Colors.transparent,
                          border: Border.all(color: Colors.black12),
                          borderRadius: BorderRadius.all(
                            const Radius.circular(6.0),
                          ),
                        ),
                        child: Container(
                          padding: new EdgeInsets.only(bottom: 9.0),
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black38),
                            controller: newNumber,
                            decoration: new InputDecoration(
                                labelStyle: TextStyle(
                                    color: Colors.black12,
                                    fontWeight: FontWeight.bold,
                                    fontSize: 12.0),
                                hintText: "",
                                focusedBorder: InputBorder.none,
                                border: InputBorder.none,
                                hintStyle: TextStyle(
                                  fontSize: 9.0,
                                  color: Colors.black12,
                                )), //FontWeight.w400
                          ),
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
          Container(margin: new EdgeInsets.only(top:5.0,bottom:5.0),width: MediaQuery.of(context).size.width,height:1.0,color: Colors.black12,),

          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Container(
                child: Text("设备编号"),
                margin: new EdgeInsets.only(left: 13.0),
              ),
              Container(
                child: Row(
                  children: <Widget>[
                    Container(
                      margin: EdgeInsets.only(left: 2.0, top: 5.0),
                      child: Text(""),
                    ),
                    new SizedBox(
                      height: 25.0,
                      width:210.0,
                      child: Container(
                        padding: new EdgeInsets.only(bottom: 9.0,right:10.0),
                        margin: new EdgeInsets.only(
                            left: 1.0, right: 1.0, top: 0.0),
                        height: 25.0,
                        decoration: BoxDecoration(
                          color: Colors.transparent,
                          border: Border.all(color: Colors.black12),
                          borderRadius: BorderRadius.all(
                            const Radius.circular(6.0),
                          ),
                        ),
                        child: Container(
                          padding: new EdgeInsets.only(bottom: 9.0),
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black38),
                            controller: newNumber1,
                            decoration: new InputDecoration(
                                labelStyle: TextStyle(
                                    color: Colors.black12,
                                    fontWeight: FontWeight.bold,
                                    fontSize: 12.0),
                                hintText: "",
                                focusedBorder: InputBorder.none,
                                border: InputBorder.none,
                                hintStyle: TextStyle(
                                  fontSize: 9.0,
                                  color: Colors.black12,
                                )), //FontWeight.w400
                          ),
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
          Container(margin: new EdgeInsets.only(top:5.0,bottom:5.0),width: MediaQuery.of(context).size.width,height:1.0,color: Colors.black12,),

          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Container(
                child: Text("规格型号"),
                margin: new EdgeInsets.only(left: 13.0),
              ),
              Container(
                child: Row(
                  children: <Widget>[
                    Container(
                      margin: EdgeInsets.only(left: 2.0, top: 5.0),
                      child: Text(""),
                    ),
                    new SizedBox(
                      height: 25.0,
                      width:210.0,
                      child: Container(
                        padding: new EdgeInsets.only(bottom: 9.0,right:10.0),
                        margin: new EdgeInsets.only(
                            left: 1.0, right: 1.0, top: 0.0),
                        height: 25.0,
                        decoration: BoxDecoration(
                          color: Colors.transparent,
                          border: Border.all(color: Colors.black12),
                          borderRadius: BorderRadius.all(
                            const Radius.circular(6.0),
                          ),
                        ),
                        child: Container(
                          padding: new EdgeInsets.only(bottom: 9.0),
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black38),
                            controller: newNumber2,
                            decoration: new InputDecoration(
                                labelStyle: TextStyle(
                                    color: Colors.black12,
                                    fontWeight: FontWeight.bold,
                                    fontSize: 12.0),
                                hintText: "",
                                focusedBorder: InputBorder.none,
                                border: InputBorder.none,
                                hintStyle: TextStyle(
                                  fontSize: 9.0,
                                  color: Colors.black12,
                                )), //FontWeight.w400
                          ),
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
          Container(margin: new EdgeInsets.only(top:5.0,bottom:5.0),width: MediaQuery.of(context).size.width,height:1.0,color: Colors.black12,),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Container(
                child: Text("条形码"),
                margin: new EdgeInsets.only(left: 13.0),
              ),
              Container(
                child: Row(
                  children: <Widget>[
                    Container(
                      margin: EdgeInsets.only(left: 2.0, top: 5.0),
                      child: Text(""),
                    ),
                    new SizedBox(
                      height: 25.0,
                      width:210.0,
                      child: Container(
                        padding: new EdgeInsets.only(bottom: 9.0,right:10.0),
                        margin: new EdgeInsets.only(
                            left: 1.0, right: 1.0, top: 0.0),
                        height: 25.0,
                        decoration: BoxDecoration(
                          color: Colors.transparent,
                          border: Border.all(color: Colors.black12),
                          borderRadius: BorderRadius.all(
                            const Radius.circular(6.0),
                          ),
                        ),
                        child: Container(
                          padding: new EdgeInsets.only(bottom: 9.0),
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black38),
                            controller: newNumber3,
                            decoration: new InputDecoration(
                                labelStyle: TextStyle(
                                    color: Colors.black12,
                                    fontWeight: FontWeight.bold,
                                    fontSize: 12.0),
                                hintText: "",
                                focusedBorder: InputBorder.none,
                                border: InputBorder.none,
                                hintStyle: TextStyle(
                                  fontSize: 9.0,
                                  color: Colors.black12,
                                )), //FontWeight.w400
                          ),
                        ),
                      ),
                    ),Image.asset(
                      "images/mipmap-hdpi-v4/gteq_icon_scan.png",
                      width: 28.0,
                      height: 28.0,
                    ),
                  ],
                ),
              ),
            ],
          ),
          Container(margin: new EdgeInsets.only(top:5.0,bottom:5.0),width: MediaQuery.of(context).size.width,height:1.0,color: Colors.black12,)
          ,Container(
            margin:
            new EdgeInsets.only(left: 10.0, right:10.0, top: 11.0),
            child: Material(
              //带给我们Material的美丽风格美滋滋。你也多看看这个布局
              borderRadius: BorderRadius.all(Radius.circular(6.0)),
              elevation: 3.0,
              color: Colors.transparent,
              child: InkWell(
                onTap: () {
                },
                //来个飞溅美滋滋。
                splashColor: Colors.lightBlueAccent,
                child: Ink(
                  height: 36.0,
                  decoration: BoxDecoration(
                      gradient: LinearGradient(
                        colors: <Color>[
                          Colors.lightBlueAccent,
                          Colors.lightBlue
                        ],
                      )),
                  child: Center(
                    child: Text(
                      '登录',
                      textAlign: TextAlign.center,
                      style: TextStyle(
                          color: Colors.white,
                          fontWeight: FontWeight.normal,
                          fontSize: 16.0),
                    ),
                  ),
                ),
              ),
            ),
          ),Container(
            margin:
            new EdgeInsets.only(left: 10.0, right:10.0, top: 11.0),
            child: Material(
              //带给我们Material的美丽风格美滋滋。你也多看看这个布局
              borderRadius: BorderRadius.all(Radius.circular(16.0)),
              elevation: 3.0,
              color: Colors.transparent,
              child: InkWell(
                onTap: () {
                },
                //来个飞溅美滋滋。
                splashColor: Colors.lightBlueAccent,
                child: Ink(
                  height: 36.0,
                  decoration: BoxDecoration(
                      gradient: LinearGradient(
                        colors: <Color>[
                          Colors.grey,
                          Colors.blueGrey
                        ],
                      )),
                  child: Center(
                    child: Text(
                      '重置',
                      textAlign: TextAlign.center,
                      style: TextStyle(
                          color: Colors.white,
                          fontWeight: FontWeight.normal,
                          fontSize: 16.0),
                    ),
                  ),
                ),
              ),
            ),
          ),

        ],
      ),
    );
  }
}
